---
portal:
  image: {{ registry_dns }}:5000/ppc64le/portal:{{ image_version }}
  environment:
      - DB_HOST={{ portal_db_host }}
      - DB_PORT=5432
      - DB_NAME=cds
      - DB_USER=cdsadmin
      - DB_PWD=pgpassw0rd
      - DB_TYPE=postgres
      - REDIS_URL=redis://{{ portal_db_host }}:6379
  volumes:
      - /data/logs/portal:/var/log/httpd
  ports:
      - "8080:80"
      - "443:443"
  restart: always

rm:
  image: {{ registry_dns }}:5000/ppc64le/rm:{{ image_version }}
  environment:
      - PORTAL_SERVER=portal
      - PORTAL_PORT=80
      - ENABLE_TENANT_POOL=false
  volumes:
      - /data/logs/rm:/usr/local/tomcat/logs
  ports:
      - "8090:8080"
  links:
      - portal
  restart: always

beat:
  image: {{ registry_dns }}:5000/ppc64le/beat:{{ image_version }}
  environment:
      - LS_HOST={{ logstash_host }}
      - LS_PORT={{ logstash_port }}
      - WORKER_COUNT=10
      - HOSTNAME=docker_host{{ hds_zone }}
  volumes:
      - /data/logs/:/data/logs
      - /var/log/:/var/log
  restart: always
